package org.jim.server.demo.enums;

import org.jim.core.Status;

public enum MyImStatus implements Status {

    C20001(20001,"send failed","不能冒充他人"),
    C20002(20002,"send failed","不能给自己发消息");

    private int status;

    private String description;

    private String text;

    MyImStatus(int status, String description, String text) {
        this.status = status;
        this.description = description;
        this.text = text;
    }

    public int getStatus() {
        return status;
    }

    public String getDescription() {
        return description;
    }

    public String getText() {
        return text;
    }

    @Override
    public int getCode() {
        return this.status;
    }

    @Override
    public String getMsg() {
        return this.getDescription()+" "+this.getText();
    }
}
